package com.yixiaobai.swimming.error;

import lombok.Getter;
import lombok.Setter;

/**
 * @author yuyunlong
 * @date 2020/7/4 3:32 下午
 * @description
 */
@Getter
@Setter
public class ErrorModel {
    /**
     * 异常编码
     */
    private Integer errCode;
    /**
     * 异常处置策略(可以是springEl表达式,可以是提示语)
     */
    private String errMsg;

    public ErrorModel(Integer errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }
}

